home *** CD-ROM | disk | FTP | other *** search
- @echo off
- bu
- bu p
-
- :start
- bu h Demonstrating the "BU" Batch Utility
- echo -------------------------------------------------------
- bu m This message should have a blank line before it and after it!
- echo -------------------------------------------------------
- bu p Pausing...
- bu p^ Pausing on clean screen
- bu m^ Message on clean screen
- bu y {y:60} Do you want to continue
- if errorlevel 1 goto yes1
- echo You said NO
- goto cont1
-
- :yes1
- echo You said YES
-
- :cont1
- bu h Daily Schedule
- bu t >nul
- if errorlevel 7 if not errorlevel 8 echo Today is Saturday
- if errorlevel 6 if not errorlevel 7 echo Today is Friday - do weekly backup
- if errorlevel 5 if not errorlevel 6 echo Today is Thursday
- if errorlevel 4 if not errorlevel 5 echo Today is humpday
- if errorlevel 3 if not errorlevel 4 echo Today is Tuesday
- if errorlevel 2 if not errorlevel 3 echo Today is Monday - do 1st-day-of-wk jobs
- if errorlevel 1 if not errorlevel 2 echo Today is Sunday
- bu m
-
- bu _ off
- echo No cursor
- bu w 5
- bu _
- echo Cursor is back
- bu w 10
- echo ------------------------------------------------------- blank line follows
- bu b
- echo -------------------------------------------------------
- bu p
- bu p That was a pause w/o msg, this one with a msg.
-
- :menu
- bu h Menu to test sounds: (You can make menus too!)
- bu d bu-menu.txt
- bu c {rwngdpq} {q:15} Choose your Noise
- if errorlevel 7 goto ch-end
- if errorlevel 6 goto ch-6
- if errorlevel 5 goto ch-5
- if errorlevel 4 goto ch-4
- if errorlevel 3 goto ch-3
- if errorlevel 2 goto ch-2
- if errorlevel 1 goto ch-1
-
- rem Notice that the errorlevels are going from high to low. Works better!
- bu p We should never get here!
-
- :ch-1
- bu s R
- goto menu
- :ch-2
- bu s W
- goto menu
- :ch-3
- bu s N
- goto menu
- :ch-4
- bu s G
- goto menu
- :ch-5
- bu s ?
- goto menu
- :ch-6
- bu s phone
- goto menu
- :ch-end
-
- bu h The WAIT command...
- bu m We will now wait for about 10 seconds, unless you hit a key first
- bu s g
- bu t
- bu w 10
- bu t
- bu s g
- bu p
-
- bu
- echo End of BU demonstration
- bu y {n:15} Do you want to run the demo again
- if errorlevel 1 goto start
- bu h Typing BU-DEMO.BAT
- bu f bu-demo.bat
- bu m Companion menu-generating programs are available. Write for details!